home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / 1722_Using_autorelease_pools_without_EOF.rtfd / PoolApplication.h next >
Text File  |  1995-04-28  |  759b  |  28 lines

  1. /*
  2.  *  This Application subclass provides support for NSAutoreleasePools.
  3.  *  If you have an application that uses Foundation but not EOF you
  4.  *  need to make this class your Application class, otherwise your
  5.  *  application will have a lot of serious memory leaks.
  6.  *
  7.  *  No guarantee is made for the fitness of this code for any particular
  8.  *  use.  No warranty expressed or implied.  Use at your own risk!
  9.  *
  10.  *  Randy Tidd
  11.  *  NeXT Premium Developer Support
  12.  */
  13. #import <appkit/appkit.h>
  14. #import <foundation/NSAutoreleasePool.h>
  15.  
  16. @interface PoolApplication : Application
  17. {
  18.     NSAutoreleasePool *autoreleasePool;
  19.     int disableCount;
  20. }
  21.  
  22. + new;
  23. - sendEvent:(NXEvent *)event;
  24. - (int)runModalSession:(NXModalSession *)session;
  25. - (int)runModalFor:theWindow;
  26.  
  27. @end
  28.